package pojo;

import java.sql.Timestamp;
import java.util.Objects;

public class TbOrderSeller {
    private Integer orderSellerId;
    private String orderSellerNum;
    private Integer orderSellerStatus;
    private Timestamp orderSellerDate;
    private Double orderSellerPrice;
    private Integer orderConsumerId;
    private Integer userId;

    public Integer getOrderSellerId() {
        return orderSellerId;
    }

    public void setOrderSellerId(Integer orderSellerId) {
        this.orderSellerId = orderSellerId;
    }

    public String getOrderSellerNum() {
        return orderSellerNum;
    }

    public void setOrderSellerNum(String orderSellerNum) {
        this.orderSellerNum = orderSellerNum;
    }

    public Integer getOrderSellerStatus() {
        return orderSellerStatus;
    }

    public void setOrderSellerStatus(Integer orderSellerStatus) {
        this.orderSellerStatus = orderSellerStatus;
    }

    public Timestamp getOrderSellerDate() {
        return orderSellerDate;
    }

    public void setOrderSellerDate(Timestamp orderSellerDate) {
        this.orderSellerDate = orderSellerDate;
    }

    public Double getOrderSellerPrice() {
        return orderSellerPrice;
    }

    public void setOrderSellerPrice(Double orderSellerPrice) {
        this.orderSellerPrice = orderSellerPrice;
    }

    public Integer getOrderConsumerId() {
        return orderConsumerId;
    }

    public void setOrderConsumerId(Integer orderConsumerId) {
        this.orderConsumerId = orderConsumerId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbOrderSeller that = (TbOrderSeller) o;
        return Objects.equals(orderSellerId, that.orderSellerId) &&
                Objects.equals(orderSellerNum, that.orderSellerNum) &&
                Objects.equals(orderSellerStatus, that.orderSellerStatus) &&
                Objects.equals(orderSellerDate, that.orderSellerDate) &&
                Objects.equals(orderSellerPrice, that.orderSellerPrice) &&
                Objects.equals(orderConsumerId, that.orderConsumerId) &&
                Objects.equals(userId, that.userId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderSellerId, orderSellerNum, orderSellerStatus, orderSellerDate, orderSellerPrice, orderConsumerId, userId);
    }
}
